<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title></title>
</head>
<body>
    <%
        int age = (int) request.getAttribute("age");

        pageContext.setAttribute("name","帅哥");
    %>
    姓名：${pageScope.name} <br>
    年龄：<%=age %> <br>
    年龄：${requestScope.age} 或 ${requestScope["age"]} <br>
    性别：${sessionScope.sex} <br>
    地址：${applicationScope.address} <br>
    <hr>

    ${sex} <br>
    ${hobby} <br>
    ${sessionScope.user.name}

</body>
</html>
